﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using PomodoroSuite.EntidadesNegocio;
using PomodoroSuite.FW.DAL;
using PomodoroSuite.FW.Comun.Apoyo;
using ComponentFactory.Krypton.Toolkit;

namespace PomodoroSuite.FrontEnd.Win
{
    public partial class frmVisorPomodoros : KryptonForm
    {
        #region " Campos "

        private DalGenerico<Pomodoro> dalPomodoro = FabricaDAL.ObtenerDal<Pomodoro>();
        private int idTareaSet = 0;

        #endregion

        #region " Constructor "

        public frmVisorPomodoros(int idTareaSet)
        {
            InitializeComponent();
            this.idTareaSet = idTareaSet;
        }

        #endregion

        #region " Eventos Formulario "

        private void frmVisorPomodoros_Load(object sender, EventArgs e)
        {
            List<Filtro> filtros = new List<Filtro>();
            filtros.Add(new Filtro("IdTareaSet", idTareaSet));
            gridPomodoros.DataSource = dalPomodoro.ObtenerListadoFiltrado(filtros);
        }

        #endregion
    }
}
